//
//  ContactUsViewController.m
//  PlayBall
//
//  Created by Huawen Liu on 12-7-25.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddContactUsViewController.h"
#import "AboutUsDetailViewController.h"

@implementation JddContactUsViewController
{
    AboutUsDetailViewController *vvv;
}

SHARED_VIEW_CONTROLLER_IMPLEMENT(JddContactUsViewController);

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}


- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
   // [self.navigationItem setTitle:PAGE_ABOUT];
    vvv = [[AboutUsDetailViewController alloc] init];
    
    UILabel *customLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 40, 30)];
    customLab.backgroundColor = [UIColor clearColor];
    [customLab setText:@"关于玩球球"];
    customLab.textAlignment = NSTextAlignmentCenter;
    [customLab setTextColor:[UIColor whiteColor]];
    customLab.font = [UIFont systemFontOfSize:19];
    self.navigationItem.titleView = customLab;
//    //self.navigationItem.hidesBackButton = YES;
    
}

- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    
    [MobClick beginLogPageView:@"More-About"];
    
}
- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [MobClick endLogPageView:@"More-About"];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

- (IBAction)guanWangBtnClick:(id)sender {
    
    vvv.url = @"http://www.jdd.com";
    [self.navigationController pushViewController:vvv animated:NO];
}

- (IBAction)weiboBtnClick:(id)sender {
    vvv.url = @"http://weibo.com/jiangduoduoguanwang";
    [self.navigationController pushViewController:vvv animated:NO];
}

- (IBAction)phoneClick:(id)sender {
    
    NSString *number = @"18674849832";
    NSString *num = [[NSString alloc] initWithFormat:@"telprompt://%@",number];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:num]];
}

- (IBAction)wapBtnClick:(id)sender {
    vvv.url = @"http://m.jdd.com";
    [self.navigationController pushViewController:vvv animated:NO];
}

- (IBAction)phoneClick2:(id)sender {
    NSString *number = @"18674899170";
    NSString *num = [[NSString alloc] initWithFormat:@"telprompt://%@",number];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:num]];
}


@end
